package bb.lanxing.lib.base;

import android.app.Application;
import android.os.Handler;
import android.os.Looper;

public abstract class BaseApplication extends Application {
    protected static BaseApplication instance;
    protected Handler handler;

    public BaseApplication() {
        instance = this;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        this.handler = new Handler(Looper.getMainLooper());
    }

    public static BaseApplication get() {
        return instance;
    }

    public Handler getHandler() {
        return this.handler;
    }
}
